/* 中心充电桩远程充电机控制应答  */
exports.run = (info, core, socket, logger) => {
  const reader = new core.BufferReader(info.data),
      userIdBuf = reader.read(2),
      cmdIndexBuf = reader.read(2);
      port = reader.read(1),
      op = reader.read(1),
      result = reader.read(1);
  let resp = {
    port: port.readUInt8(),
    op: op.readUInt8() === 0x55 ? '预约': '取消预约',
    result: result.readUInt8() === 0 ? '失败': '成功'
  };
  logger.info(info, resp);
  socket.emit(`0x33-${userIdBuf.toString('hex')}-${cmdIndexBuf.toString('hex')}`, resp);
}

